<?php
use Swoole\Http\Server;

$http = new Server("0.0.0.0", 9503);
$http->on('request', function ($request, $response) {
	$response->header('Content-Type', "application/json");
	$ret =new stdClass();
	$ret->status = 'success';
	$ret->message = 'ok';
    $response->end(json_encode($ret));
});
$http->start();